package com.team11.server.service.admin;

import com.team11.server.mapper.Admin_SelTidAndTName_Mapper;
import com.team11.server.pojo.TInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.LinkedList;
import java.util.List;

@Service
public class Admin_SelTidAndTName_Service {
    @Autowired
    private Admin_SelTidAndTName_Mapper admin_selTidAndTName_mapper;
    public List<String> selTidAndTName(){
        List<String> tNames = new LinkedList<>();
        List<TInformation> lists=admin_selTidAndTName_mapper.SelSidAndSName();
        for (TInformation tInformation:lists){
            System.out.println(tInformation.getTJobNumber()+"-"+tInformation.getTName());
            tNames.add(tInformation.getTJobNumber()+"-"+tInformation.getTName());
        }
        return tNames;
    }
}
